package com.iims.customer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iims.customer.domain.Customer;

import java.util.List;

/**
 * 客户服务
 *
 * @author fanpei
 * @date 2021/6/11 14:27
 */
public interface CustomerMapper extends BaseMapper<Customer> {
    /**
     * 获取客户列表
     *
     * @param customer
     * @return
     */
    List<Customer> selectCustomerList(Customer customer);

    /**
     * 通过id获取详情
     *
     * @param customerId
     * @return
     */
    Customer selectCustomerById(Long customerId);

    /**
     * 检查客户使用个数
     *
     * @param customerId
     * @return
     */
    int checkCustomerUseCount(Long customerId);
}
